package webservice;

import javax.xml.ws.Endpoint;

public final class Service {
	private String serviceUrl;
	private Object handler;
	private Endpoint endpoint;

	protected Service(String serviceUrl, Object handler, Endpoint endpoint) {
		this.serviceUrl = serviceUrl;
		this.handler = handler;
		this.endpoint = endpoint;
	}

	public String getServiceUrl() {
		return serviceUrl;
	}

	public Object getHandler() {
		return handler;
	}

	protected Endpoint getEndpoint() {
		return endpoint;
	}

	public void destroy() {
		ServiceManager.destroy(this);
	}

}
